﻿using System;

namespace HigLabo.Net.WindowsLive
{
    /// <summary>
    /// 
    /// </summary>
    public class GetPermissionsCommnad : WindowsLiveCommand
    {
        /// <summary>
        /// 
        /// </summary>
        public override string GraphApiPath
        {
            get
            {
                if (HttpClient.IsNullOrWhiteSpace(UserID))
                    return "me/permissions";
                else
                    return String.Format("{0}/permissions", UserID);
            }
        }
        /// <summary>
        /// 
        /// </summary>
        public String UserID { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public GetPermissionsCommnad()
        {

        }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="userID"></param>
        public GetPermissionsCommnad(String userID)
        {
            this.UserID = UserID;
        }
    }
}
